home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / c / CLib-SDI.lha / CLib-SDI / libsource / makefile.gcc < prev    next >
Makefile  |  2002-10-27  |  458b  |  17 lines

  1. CFLAGS = -O2 -c -I ../include/C/ -D __NOLIBBASE__
  2. LFLAGS = -noixemul -nostartfiles -s
  3.  
  4. DDIR = ../libs/# the directory, where destination library is stored
  5.  
  6. $(DDIR)example.library: libinitgcc.o examplefuncsgcc.o
  7.     gcc $(LFLAGS) -o $@ libinitgcc.o examplefuncsgcc.o
  8.     
  9. libinitgcc.o: libinfo.h libinit.c
  10.     gcc $(CFLAGS) -o $@ libinit.c
  11.  
  12. examplefuncsgcc.o: libinfo.h examplefuncs.c
  13.     gcc $(CFLAGS) -o $@ examplefuncs.c
  14.  
  15. clean:
  16.     delete examplefuncsgcc.o libinitgcc.o
  17.